using MediatR;
using UniversalAdmin.Application.Common;
using UniversalAdmin.Application.DTOs;

namespace UniversalAdmin.Application.Features.Roles.Queries.GetRolesByName;

public record GetRolesByNameQuery : IRequest<ApiResult<PagedResult<RoleDto>>>
{
  public string? Name { get; init; } // 模糊查询关键词
  public int PageIndex { get; init; } = 1;
  public int PageSize { get; init; } = 10;
}